<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../../js库/mock.js"></script>
    <script src="../../js库/vue.js"></script>
    <title>盒子边框</title>
    <style>
        /* css三个新增属性
            圆角边框
                border-radius:length 
                    length为半径 
                        百分比 
                        数值
                想做圆形盒子 先准备个正方形 length为边长的一半
                圆角矩形 length为高度的一半
                多个数值 :左上 右上 右下 左下
        */
        div.yuan {
            text-align: center;
            line-height: 50px;
            width: 300px;
            height: 50px;
            background-color: palegreen;
            border-radius: 200px;
        }

        div.zhen {
            width: 300px;
            height: 300px;
            /* 宽度的一半 */
            border-radius: 50%;
            line-height: 300px;
        }

        div.yuanhu {
            line-height: 300px;
            width: 500px;
            height: 300px;
            border-radius: 150px;
        }

        div.nosame {
            width: 400px;
            height: 200px;
            line-height: 200px;
            border-radius: 30px 50px 100px 400px;
        }

        div.sanjiao {
            width: 0;
            height: 0;
            border: 50px solid;
            border-color: orangered skyblue gold yellowgreen;
            border-top: 50px solid skyblue;
            border-right: 50px solid transparent;
            border-left: 50px solid transparent;
            border-bottom: 50px solid transparent;

        }
    </style>
</head>

<body>
    <div id="root">
        <div class="yuan">圆角</div>
        <div class="zhen" style="text-align: center;background-color: green;">正方形</div>
        <div class="yuanhu" style="text-align: center;background-color: pink;">圆弧</div>
        <div class="nosame" style="text-align: center;background-color: orange;">不同圆角</div>
        <div class="sanjiao"></div>
    </div>
</body>
<script>
    new Vue({
        el: '#root',
        data() {
            return {
            }
        },
    })
</script>

</html>